﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using T.Common.Domain.Common;

namespace RedDragon.Common.Domain.AuthorizeRBAC
{
    /// <summary>
    /// 资源管理
    /// </summary>
    [SugarTable("Resource")]
    public class Resource : BaseEntity
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键 IsIdentity 自增
        
        public int ResourceId { get; set; }

        /// <summary>
        /// 资源编号
        /// </summary>
        /// 
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string ? ResourceNo { get; set; }
        /// <summary>
        /// 资源名称
        /// </summary>

        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string ? ResourceName { get; set; }

        /// <summary>
        /// 资源类别
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string ? ResourceType { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string ? ResourceDw { get; set; }

        /// <summary>
        /// 计算成本
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string ? ResourceMoney { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string ? ResourceSmark { get; set; }

        /// <summary>
        /// 计费方式
        /// </summary>
        
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string ? MoneyType { get; set; }
        /// <summary>
        /// 费用类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)")]//设置长度
        public string ? ResourceCost { get; set; }

    }
}
